#ifndef ODBC_DIRECT_STAT_EXEC_POLICY_HPP
#define ODBC_DIRECT_STAT_EXEC_POLICY_HPP

#include "odbc/odbc_error.hpp"

namespace odbc
{

// TODO: Document
class direct_stat_exec_policy
{
public:
	static void prepare_statement( SQLHANDLE, const std::string&)
	{
	}

	static void execute_statement( SQLHANDLE stat_h, const std::string& stat_str)
	{
		SQLRETURN ret_code = SQLExecDirect( stat_h, (SQLCHAR*)stat_str.c_str(), SQLINTEGER( stat_str.size()));
		throw_if_stat_failed( ret_code, stat_h);
	}
};


} // namespace odbc

#endif // ODBC_DIRECT_STAT_EXEC_POLICY_HPP
